package com.rpc.service;

import com.rpc.interfaces.MyDubboService;
import com.rpc.vo.UserVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @auth:hp.long
 * @createTime:2016-10-21 16:15
 */
@Service
public class MyDubboServiceImpl implements MyDubboService {

    private static Logger logger = LoggerFactory.getLogger(MyDubboServiceImpl.class);

    public UserVo showMsg(String code) {
        logger.info("rpc code ========================={}",code);
        UserVo userVo = new UserVo();
        userVo.setCode(code);
        userVo.setPhone("dubbo - phone");
        userVo.setPassword("dubbo - password");
        return userVo;
    }
}
